(function($) {
	$.fn.wcGetDelayedLoad = function(url) {
		var selects = this;

		$(selects).each(function() {
			$(this).attr("wcURL", url);
		});
		$.get(url, function(data) {
			$(selects).html(data);
		});

		return this;
	};
	$.fn.wcGetDelayedReload = function(appendix) {
		if (typeof appendix == "undefined") {
			appendix = "";
		}

		$(this).each(function() {
			if ($(this).attr("wcURL")) {
				console.log("Reloading: " + $(this).attr("wcURL") + appendix);
				$(this).wcGetDelayedLoad($(this).attr("wcURL") + appendix);
			}
		});
	}
}(jQuery));